<?php
return array(
/*
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
        ),
    ),
*/
   'service_manager' => array(
      'factories' => array(
         'Zend\Db\Adapter\Adapter' => function ($serviceManager) {
            $adapterFactory = new Zend\Db\Adapter\AdapterServiceFactory();
            $adapter = $adapterFactory->createService($serviceManager);

            \Zend\Db\TableGateway\Feature\GlobalAdapterFeature::setStaticAdapter($adapter);
            return $adapter;
         }
      ),
   ),

    'aliases' => array(
//        'db'    => 'Zend\Db\Adapter\Adapter',
//        'dbLog' => 'Zend\Db\Adapter\Adapter',
    ),
    'db' => array(
        'dsn'       => 'pgsql:dbname=idicel;host=10.230.80.125;port=8080',
        'username'  => 'idicel',
        'password'  => 'idicel123456',
    ),
);
